package jnpf.property.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jnpf.property.entity.ZcInspectionTaskItemEntity;
import jnpf.property.mapper.ZcInspectionTaskItemMapper;
import jnpf.property.service.ZcInspectionTaskItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ZcInspectionTaskItemServiceImpl extends ServiceImpl<ZcInspectionTaskItemMapper, ZcInspectionTaskItemEntity> implements ZcInspectionTaskItemService {

    @Override
    public List<ZcInspectionTaskItemEntity> getTaskItem(String taskId) {
        LambdaQueryWrapper<ZcInspectionTaskItemEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ZcInspectionTaskItemEntity::getTaskId, taskId);
        return list(queryWrapper);
    }

}
